<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>DT-CHAT</title>
  <link rel="shortcut icon" href="../static/img/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" type="text/css" href="../static/js/layui-v2.9.7/layui/css/layui.css">
  <link rel="stylesheet" type="text/css" href="../static/css/style.css">
  <link rel="stylesheet" type="text/css" href="../static/css/knowledgebasemanagement.css">
</head>

<body>

  <div class="app">
    <div class="left-block">
      <img style="width: 1.66rem;height: .35rem;margin-top: .1rem;margin-left: .1rem;" src="../static/img/logo.png">
      <div class="version">当前版本：v1.0.1</div>
      <div class="left-btns">
        <div class="left-btns-item" onclick="window.location.href='./index.html'">
          <img src="../static/img/icon1.png"><span>对话</span>
        </div>
        <div class="left-btns-item active" onclick="window.location.href='./knowledgebasemanagement.html'">
          <img src="../static/img/icon2.png"><span>知识库管理</span>
        </div>
        <div class="left-btns-item" onclick="window.location.href='./rolemanagement.html'">
          <img src="../static/img/icon18.png"><span>对话人设管理</span>
        </div>
        <div class="left-btns-item" onclick="window.location.href='./questionmanagement.html'">
          <img src="../static/img/icon3.png"><span>常用问题管理</span>
        </div>
        <div class="left-btns-item" onclick="window.location.href='./usermanagement.html'">
          <img src="../static/img/icon23.png"><span>用户管理</span>
        </div>
      </div>
      <div style="position: absolute;bottom: .2rem;width: 100%;text-align: center;">
        <button type="button" class="layui-btn layui-btn-sm layui-bg-blue" onclick="showEditPasswordWindow()">
          <i class="layui-icon layui-icon-username"></i>
          我的
        </button>
        <button type="button" style="border: .01rem solid #A3CAFF;color: #9EC7FF !important;"
          class="layui-btn layui-btn-sm layui-btn-primary layui-border" onclick="logout()">
          <i class="layui-icon layui-icon-logout"></i>
          退出
        </button>
      </div>
    </div>
    <div class="center-block">
      <div class="center-block-title">
        <img src="../static/img/icon13.png">
        <span style="margin-left: .1rem;">知识库</span>
        <img src="../static/img/icon14.png" onclick="showAddWindow('1')">
      </div>
      <div class="center-block-content">
        <ul class="knowledgebase-list">
        </ul>
      </div>
    </div>
    <div class="right-block">
      <div class="table-tool layui-form">
        <div>
          <div class="layui-input-inline">
            <select id="vectorStatus-select" name="vectorStatus" lay-filter="select-search">
              <option value="">请选择是否向量化</option>
              <option value="0">未向量化</option>
              <option value="1">向量化</option>
            </select>
          </div>
          <div class="layui-input-inline">
            <input type="text" placeholder="请输入文档名称" id="name-search" name="name" class="layui-input" lay-affix="search"
              lay-filter="search" lay-options="{split: true}">
          </div>
        </div>
        <div class="tool-btns">
          <button type="button" class="layui-btn" onclick="showUploadWindow()">
            <i class="layui-icon layui-icon-upload"></i>
            上传文件
          </button>
          <button type="button" class="layui-btn" onclick="showReUploadFileWindow('2')">
            <i class="layui-icon layui-icon-add-circle"></i>重新添加至向量库</button>
          <button type="button" class="layui-btn" onclick='showDelFileWindow("2","1")'>
            <i class="layui-icon layui-icon-reduce-circle"></i>从向量库删除</button>
          <button type="button" class="layui-btn" onclick='showDelFileWindow("2","2")'>
            <i class="layui-icon layui-icon-delete"></i>从知识库删除</button>
        </div>
      </div>
      <div class="table" style="padding: 0 .2rem;">
        <table class="layui-hide" id="table"></table>
      </div>
    </div>
  </div>
  <script type="text/javascript" src="../static/js/layui-v2.9.7/layui/layui.js"></script>
  <script type="text/javascript" src="../static/js/jquery/jquery.min.js"></script>
  <script type="text/javascript" src="../static/js/app.js"></script>
  <script type="text/javascript" src="../static/js/knowledgebasemanagement.js"></script>
</body>

</html>